<!--
  // Creation History
  // --------------------------------------------------------------
  //	Company:			HTHK
  //	NAME:				Job.jsp
  //	TITLE:				Local Cost
  //	FUNCTION:			Add or Update Job.
  //	BY:					Jet Tao
  //	DATE:				09/2003
  // --------------------------------------------------------------
-->

<%@ include file="../tssheader.jsp" %>
<%@ page import="tss.job.*" %>
<%@ page import="tss.options.*" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %>

<script language="JavaScript" >

function formValidation()
{
	if(isNull(fm.job_name," Job Name "))
		return false;
    
	return true;
}

</script>

<%
	//Get A Job Code list
	JobOptions JobOption=new JobOptions();

    //Get A Job
    JobBean Job = (JobBean)request.getAttribute("Job");
    if (Job==null)
       Job = new Job();
    if (formAction!=null && formAction.trim().equalsIgnoreCase("Update"))
       readOnly = new String(" class=read readonly ");

%>
<body>

<h2>Job Maintenance</h2>
<form id=fm method=post action=<%=contextPath%>/servlet/tss.job.JobServlet >
<input type=hidden name=formAction value=<%=formAction%> >
<table cols=10 border=0 >
<tr>
  <td>Job Name</td>
  <td><input type=text name=job_name value="<%=Job.getJob_name()%>" onBlur="this.value=this.value.toUpperCase();" <%=readOnly%> maxlength=20 size=12></td>
</tr>

<tr>
  <td>Comments</td>
  <td><input type=text name=comments value="<%=Job.getComments()%>" maxlength=255 size=40></td>
</tr>



</table>
<hr>

<p>
  <INPUT type=button value=Save onclick="save()" >
  <INPUT type=button value=Delete  onclick="deleteRecord()"  >
   <INPUT type=reset  value=Cancel >
 <INPUT type=button value=Back onclick=history.back() >

</p>
</form>
<%@ include file="../tssfooter.jsp" %>
</body>
</body>
</html>

